<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace Home\Controller;
use Think\Controller;

/**
 * Description of ShelvedControler
 *
 * @author Dark
 */
class ShelvedController extends Controller {
    public function testAddShelve() {
        $data['shelveTime'] = '2015-07-29 13:43';
        $data['unitPrice'] = 21;
        $data['number'] = 12;
        $data['goods_ID'] = 20;
        
        $shelve = D('shelved');
//        echo $shelve->addShelveRecord($data);
        
//        $ID = $_GET['id'];
//        echo $shelve->deleteShelveRecordByID($ID);
        echo var_dump($shelve->queryAllRecord());
    }
}
